/*
 * @Description: 组织机构相关接口
 * @Author: Liu Zhiwang
 * @Date: 2021-04-30 16:06:35
 * @LastEditTime: 2021-04-30 17:14:42
 * @LastEditors: Liu Zhiwang
 */
import request from '@/utils/request';

// 查询组织机构下的部门和单位
export function getDeptListByDeptTypeCode(query) {
  return request({
    url: `/sysm/dept/getDeptListByDeptTypeCode`,
    method: 'get',
    params: query
  });
}

// 按部门id查询人员列表
export function getSegmentListByDeptId(query) {
  return request({
    url: `/sysm/staff/getSegmentListByDeptId`,
    method: 'get',
    params: query
  });
}
